﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectSummary
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    public class map_ProjectSummaryInfo : EntityMapping<DB_Model.ywxt.ProjectSummary.ProjectSummaryInfo>
    {
        public map_ProjectSummaryInfo()
        {
            //申请用户
            ManyToOne(x => x.CreatorUser, map =>
            {
                map.Column("CreatorUserID");
            });

            //项目业主
            ManyToOne(x => x.Owner, map =>
            {
                map.Column("OwnerEntID");
            });

            Property(x => x.OwnerIsZFSYDW, map =>
            {
            });

            //项目
            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjectID");
            });

            Property(x => x.ProjFWF, map =>
            {
            });

            Property(x => x.ProjFWF_wy, map =>
            {
            });

            Property(x => x.ProjKBSJ, map =>
            {
            });

            Property(x => x.ProjNBFL, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjWBBH, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjWTJE, map =>
            {
            });

            Property(x => x.ProjWTJE_my, map =>
            {
            });

            Property(x => x.ProjWTJE_wy, map =>
            {
            });

            Property(x => x.ProjWTJE_wy_my, map =>
            {
            });

            Property(x => x.ProjWTSBH, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjXMXZ, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjYear, map =>
            {
            });

            Property(x => x.ProjZBFS, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjZBJE, map =>
            {
            });

            Property(x => x.ProjZBJE_my, map =>
            {
            });

            Property(x => x.ProjZBJE_wy, map =>
            {
            });

            Property(x => x.ProjZBJE_wy_my, map =>
            {
            });

            Property(x => x.ProjZBNR, map =>
            {
                map.Length(20000);
            });

            Property(x => x.ProjZBSBH, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjZBSJ, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjZJLY, map =>
            {
                map.Length(200);
            });

            Property(x => x.Winners, map =>
            {
                map.Length(20000);
            });
        }
    }
}
